package com.tiger.cloud.enums;

import com.tiger.cloud.common.mybatis.handler.CodeEnum;

public enum UserCompanyInfoUsers implements CodeEnum<UserCompanyInfoUsers> {

	employee_01(0, "<10"), employee_02(1, "1~30"),employee_03(2, "31~100"),employee_04(3, ">100");

	private int code;
	private String desc;

	private UserCompanyInfoUsers(int code, String desc) {
		this.code = code;
	}

	/**
     * 通过枚举<code>name</code>获取枚举
     */
    public static UserCompanyInfoUsers getEnumByCode(Integer code) {
    	if(code==null){
    		return null;
    	}
        for (UserCompanyInfoUsers enumm : UserCompanyInfoUsers.values()) {
            if (enumm.getCode()==code.intValue()) {
                return enumm;
            }
        }
        return null;
    }
    
	@Override
	public int getCode() {
		return code;
	}

	public String getDesc() {
		return desc;
	}
	
}
